{template "header.html"}

{if $admin.adminid==1 && !IS_OEM_CMS}
{if is_file(CMSPATH.'Config/vip.lock') && !is_file(WRITEPATH.'config/safe.php')}
<div class="note note-danger">
    {if !dr_is_app('safe')}
    <p><a style="color: red" href="{dr_url('cloud/local')}">当前环境未能通过安全验证，请安装【系统安全加固】插件</a></p>
    {else}
    <p><a style="color: red" href="{dr_url('safe/home/index')}">当前环境未能通过安全验证，请按要求设置参数</a></p>
    {/if}
</div>
{elseif IS_DEV}
<div class="note note-danger">
    <p><a style="color: red" href="javascript:dr_help(204);">当前环境参数已经开启开发者模式，项目上线后建议关闭开发者模式</a></p>
</div>
{/if}
{/if}


<div class="row">

    <div class="col-md-6 col-sm-6">

        {if $admin.adminid==1 && !IS_OEM_CMS}
        <div class="portlet light bordered myportlet ">
            <div class="portlet-title tabbable-line">
                <div class="caption">
                    <i class="fa fa-cog"></i>
                    <span class="caption-subject"> <a style="color:#666" href="{dr_url('cloud/index')}">{dr_lang('程序信息')}</a> </span>
                </div>
            </div>
            <div class="portlet-body">
                <ul class="use-info">
                    <li>
                        <span>系统版本：</span>
                        <a target="_blank" href="https://duixin.cc/">v{$cmf_version}</a>
                        <a id="dr_cmf_update" href="{dr_url('cloud/update')}" style="margin-left: 10px;display: none" class="badge badge-danger badge-roundless">  </a>
                    </li>

                </ul>
            </div>
        </div>
		<script>
            $(function () {
                {if !defined('SYS_NOT_UPDATE') || !SYS_NOT_UPDATE}
                dr_check_version();
                {else}
                $('#dr_cmf_update').removeClass('badge-danger');
                $('#dr_cmf_update').show();
                $('#dr_cmf_update').attr('href', 'javascript:dr_check_version();');
                $('#dr_cmf_update').html('{dr_lang('检测版本')}');
                {/if}
                });
                function dr_check_version(){
                    $('#dr_cmf_update').html('{dr_lang('检测版本进行中...')}');
                    $.ajax({type: "GET",dataType:"json", url: "{dr_url('cloud/check_version')}&id=cms-1&isindex=1&version={CMF_VERSION}",
                        success: function(json) {
                            if (json.code) {
                                $('#dr_cmf_update').addClass('badge-danger');
                                $('#dr_cmf_update').show();
                                $('#dr_cmf_update').html(json.msg);
                            } else {
                                $('#dr_cmf_update').html("");
                            }
                        }
                    });
                }
        </script>

        {/if}

        
		{template "main/couts.html"}


    </div>

    <div class="col-md-6 col-sm-6">

		{template "main/notice.html"}


    </div>

</div>



</div>


{template "footer.html"}